<?php
require "model/kid.model.php";
session_start();
 if($_SESSION['username']){
  $id = $_GET["id"];
  $tr = kidList::delekid($id);
  if($tr){
     
     echo "<script>alert('删除成功');parent.location.href='./control_kid.php';</script>";
  }else{
     echo "<script>alert('删除失败');parent.location.href='./control_kid.php';</script>";
  }
}else{
    header("Location:../login.php");
     exit();
}     
